/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UserPackage;

/**
 *
 * @author RES
 */
public class inputChecker {

    public boolean stringCompare(String data){
        boolean result = false;
        
        String data2 = data;
        
        data2 = data2.replaceAll("[^a-zA-Z 0-9]", "");
        if(data.equals(data2))
        return true;
        
        return result;
                
    }
 public boolean emailCheck(String data){
     boolean result = false;
        
        String data2 = data;
        
        data2 = data2.replaceAll("[^a-zA-Z0-9@._]", "");
                
        if(data.equals(data2))
        return true;
        return result;
        
 }
  public boolean dateCheck(String data){
     boolean result = false;
        
        String data2 = data;
        
        data2 = data2.replaceAll("[^a-zA-Z0-9/-]", "");
                
        if(data.equals(data2))
        return true;
        
        return result;
        
 }          
}
